package com.qf.first.base.result;

import lombok.Getter;

@Getter
public enum ResultCode {
    SUCCESS(200,"success"),
    ERROR(404,"error"),
    /*用户相关状态码*/
    UN_LOGIN(40001,"用户未登录"),
    ACCOUNT_LOGIN_ERROR(40002,"用户名或密码错误"),
    LOGIN_ERROR_OFEN(40002,"操作过于频繁"),
    USER_EXIT(400201,"用户名已存在");

    private final int code;
    private final String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
